import { addGlobalUncaughtErrorHandler, registerMicroApps, start } from 'qiankun'
// 获取所有子应用
// import apps from './micro-app.js'
// registerMicroApps(apps)
// // 启动 qiankun
// start()



import {initProject} from './micro-app.js'

(async () => {
  const apps = await initProject();
  console.log('apps---', apps)
  registerMicroApps(apps);
  start();
})();




// 添加全局异常捕获
addGlobalUncaughtErrorHandler((handler) => {
  console.log('异常捕获', handler)
})
